class MyArray{
    public Object[]array=new Object[10];

    public Object Getpos(int pos) {
        return array[pos];
    }

    public void setArray(int pos,Object val) {
        this.array[pos]=val;
    }
}
public class Test {
    public static void main(String[] args) {
        MyArray myArray =new MyArray();
        myArray.setArray(0,100);
        myArray.setArray(1,"abc");
        String ret =(String) myArray.Getpos(1);
        int pos =(int) myArray.Getpos(0);
        System.out.println(ret);
        System.out.println(pos);
    }
    public static void main22(String[] args) {
        Integer a =127;
        Integer b =127;
        Integer c =128;
        Integer d =128;
        System.out.println(a==b);
        System.out.println(c==d);
    }
    public static void main2(String[] args) {
        Integer a =new Integer(10);
        int b = a;
        System.out.println(b);
        int c = a.intValue();
        System.out.println(c);
        double d =a.doubleValue();
        System.out.println(d);
    }
    public static void main1(String[] args) {
        int a = 10;
        Integer b = a;
        System.out.println(b);
        Integer c =Integer.valueOf(a);
        System.out.println(c);
    }
}
